package com.wt.admin.domain.entity.sys;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wt.admin.config.CiphertextTypeHandler;
import com.wt.admin.domain.entity.PublicEntity;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "sys_user",autoResultMap = true)
public class SysUserEntity extends PublicEntity {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField(value = "nick_name")
    private String nickName;

    @TableField(value = "account",typeHandler = CiphertextTypeHandler.class)
    private String account;

    @TableField(value = "password")
    private String password;

    @TableField(value = "email",typeHandler = CiphertextTypeHandler.class)
    private String email;

    @TableField(value = "enable_tag")
    private Boolean enableTag;

    @TableField(value = "expired_time")
    private Date expiredTime;

    @TableField(value = "role_id")
    private Integer roleId;

    @TableField(exist = false)
    private String roleName;

}
